/**********************************************************************
 *** *                                                            * ***
 *** *  Copyright (c) 2011 Harmonia Holdings Group LLC            * ***
 *** *                                                            * ***
 *** * Permission is hereby granted to use, modify, copy, and     * ***
 *** * distribute this software and its documentation for any     * ***
 *** * purpose only without profit, provided that the above       * ***
 *** * Copyright Notice appears in all copies and that both the   * ***
 *** * Copyright Notice and this Permission Notice appears in     * ***
 *** * every copy of supporting documentation.  No title to nor   * ***
 *** * ownership of the software is transferred hereby.  The name * ***
 *** * of Harmonia Holdings Group LLC shall not be used in        * ***
 *** * advertising or publicity related to the distribution of    * ***
 *** * the software without specific, written, prior permission.  * ***
 *** * This software is provided as-delivered without expressed   * ***
 *** * or implied warranty.  Harmonia Holdings Group LLC          * ***
 *** * makes no representation about the suitability of this      * ***
 *** * software for any purpose and accepts no responsibility for * ***
 *** * its use.                                                   * ***
 *** *                                                            * ***
 *** ************************************************************** ***
 *** *                                                            * ***
 *** * This program is free software; you can redistribute it     * ***
 *** * and/or modify it under the terms of the GNU General Public * ***
 *** * License as published by the Free Software Foundation;      * ***
 *** * either version 2 of the License, or (at your option) any   * ***
 *** * later version.                                             * ***
 *** *                                                            * ***
 *** * This program is distributed in the hope that it will be    * ***
 *** * useful, but WITHOUT ANY WARRANTY; without even the implied * ***
 *** * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR    * ***
 *** * PURPOSE.  See the GNU General Public License for more      * ***
 *** * details.                                                   * ***
 *** *                                                            * ***
 *** * You should have received a copy of the GNU General Public  * ***
 *** * License along with this program; if not, write to the Free * ***
 *** * Software Foundation, Inc., 51 Franklin Street, Fifth       * ***
 *** * Floor, Boston, MA 02110-1301, USA.                         * ***
 *** *                                                            * ***
 *** * For more information: http://www.gnu.org/licenses/gpl.html * ***
 *** *                                                            * ***
 **********************************************************************/

package org.etexascode.nonstd;

import java.awt.Polygon;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
@XmlType(name = "DetectorData", propOrder = {
    "id",
    "presenceDetectCap",
    "pulseDetectCap",
    "speedDetectCap",
    "lengthDetectCap",
    "presence",
    "pulse",
    "detectedSpeed",
    "detectedLength",
    "area"
})
public class DetectorData {
    
    @XmlElement(required = true)
    private int id;
    
    private boolean presenceDetectCap;
    
    private boolean pulseDetectCap;
    
    private boolean speedDetectCap;
    
    private boolean lengthDetectCap;
    
    private boolean presence;
    
    private int pulse;
    
    private double detectedSpeed;
    
    private double detectedLength;
    
    private Polygon area = new Polygon();
    
    public void setId(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public int getPulse() {
        return pulse;
    }

    public void setPulse(int pulse) {
        this.pulse = pulse;
    }

    public double getDetectedLength() {
        return detectedLength;
    }

    public double getDetectedSpeed() {
        return detectedSpeed;
    }

    public boolean isLengthDetectCap() {
        return lengthDetectCap;
    }

    public boolean isPresence() {
        return presence;
    }

    public boolean isPresenceDetectCap() {
        return presenceDetectCap;
    }

    public boolean isPulseDetectCap() {
        return pulseDetectCap;
    }

    public boolean isSpeedDetectCap() {
        return speedDetectCap;
    }

    public void setDetectedLength(double detectedLength) {
        this.detectedLength = detectedLength;
    }

    public void setDetectedSpeed(double detectedSpeed) {
        this.detectedSpeed = detectedSpeed;
    }

    public void setLengthDetectCap(boolean lengthDetectCap) {
        this.lengthDetectCap = lengthDetectCap;
    }

    public void setPresence(boolean presence) {
        this.presence = presence;
    }

    public void setPresenceDetectCap(boolean presenceDetectCap) {
        this.presenceDetectCap = presenceDetectCap;
    }

    public void setPulseDetectCap(boolean pulseDetectCap) {
        this.pulseDetectCap = pulseDetectCap;
    }

    public void setSpeedDetectCap(boolean speedDetectCap) {
        this.speedDetectCap = speedDetectCap;
    }

    public Polygon getArea() {
        return area;
    }

    public void setArea(Polygon area) {
        this.area = area;
    }
}
